package com.bookstore.bauhinia.category.service;

import com.bookstore.bauhinia.pojo.Category;

import java.util.List;

public interface CategoryService {
    /**
     * 往数据库插入一本书
     * @see Category
     * @param record
     * @return 数字大于0则创建成功
     */
    int insert(Category record);
    Category selectByPrimaryKey(Integer id);
    int deleteByPrimaryKey(Integer id);
    int updateByPrimaryKey(Category record);
    List<Category> getAllCategories();
}